﻿#ifndef POPINFOMSGDIALOG_H
#define POPINFOMSGDIALOG_H

#include <qboxlayout.h>
#include <QWidget>
#include <QScrollArea>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include "PopInfoMsgDialog_global.h"

class POPINFOMSGDIALOG_EXPORT PopInfoMsgDialog: public QWidget {
Q_OBJECT;
private:
	QScrollArea* area;
	QVBoxLayout* boxLayout;
	QVBoxLayout* areaBoxLayout;
	QWidget* areadWidget;
	QWidget* winMain = Q_NULLPTR;
public:
	QWidget* getWinMain( ) const {
		return winMain;
	}

	void setWinMain(QWidget* winMain) {
		this->winMain = winMain;
	}

	PopInfoMsgDialog(QWidget* parent = Q_NULLPTR
		, const Qt::WindowFlags& f = Qt::WindowFlags( ));
	void hideMsgBox(bool flage);
	void appMsg(const QString& msg);
	void showMsg(QString msg
		, QWidget* pramParent);
};
#endif // POPINFOMSGDIALOG_H
